package com.cgrs572.shortlink.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@MapperScan("com.cgrs572.shortlink.admin.dao.mapper")
@EnableFeignClients("com.cgrs572.shortlink.admin.remote") // 启用OpenFeign,目的：可以使用Feign进行远程调用。注意：要设置Feign扫描的路径
@EnableDiscoveryClient // 启用Nacos的服务注册与发现的注解
public class ShortLinkAdminApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShortLinkAdminApplication.class, args);
        System.out.println("Admin Running...");
    }
}